<%--
  Created by IntelliJ IDEA.
  User: 75880
  Date: 2024/8/17
  Time: 22:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>供应商管理系统</title>
    <meta name="description" content="这是一个 index 页面">
    <meta name="keywords" content="index">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link rel="icon" type="image/png" href="assets/i/favicon.png">
    <link rel="apple-touch-icon-precomposed" href="assets/i/app-icon72x72@2x.png">
    <meta name="apple-mobile-web-app-title" content="Amaze UI"/>
    <link rel="stylesheet" href="assets/css/amazeui.min.css"/>
    <link rel="stylesheet" href="assets/css/admin.css">
    <link rel="stylesheet" href="assets/css/app.css">
    <script type="text/javascript" src="assets/js/jquery.min.js"></script>
    <script>



        $(document).ready(function () {
            $("[id='11']").click(function () {
              var email = $("[type='email']").val();
              var password = $("[type='password']").val();
                const constAccount = email;
                sessionStorage.setItem('constAccount',constAccount);
              $.get("UserController/login",{"e":email,"p":password},function (a) {
                JSON.stringify(a);
                if (a){
                    var targetUrl = "info-certification.jsp?email=" + encodeURIComponent(email);
                    // 跳转到目标 URL
                    window.location.href = targetUrl;
                }else {
                    alert("账号密码错误");
                }
              })

            })

        })


    </script>
</head>

<body data-type="login">

<div class="am-g myapp-login">
    <div class="myapp-login-logo-block  tpl-login-max">
        <div class="myapp-login-logo-text">
            <div class="myapp-login-logo-text">
                供应商管理系统
            </div>
        </div>
        <div class="am-u-sm-10 login-am-center">
            <form class="am-form">
                <fieldset>
                    <div class="am-form-group">
                        <input type="email" class="" id="doc-ipt-email-1" placeholder="请输入账号">
                    </div>
                    <div class="am-form-group">
                        <input type="password" class="" id="doc-ipt-pwd-1" placeholder="请输入密码">
                    </div>

                        <div style="    width: 100%;height: 40px;text-align: center;
						border-radius: 6px;
						background: #53d192;
						border: none;
						color: #fff;
						font-size: 18px;
						line-height: 40px;margin-top: 20px;" id="11">登录

                        </div>

                </fieldset>
            </form>
        </div>
    </div>
</div>

<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/amazeui.min.js"></script>
<script src="assets/js/app.js"></script>
<script>

</script>
</body>

</html>

